<template>
  <el-main>
    <el-form ref="form" :model="form"  label-width="80px">
      <el-col >
        <el-form-item label="房间号" prop="roomNumber">
          <el-input v-model="form.seat" placeholder="请输入房间号"/>
        </el-form-item>
      </el-col>
    </el-form>
    <el-button  type="info" round style="font-size: 50px;width: 88%;height: 200px;margin-top: 50px;margin-left: 35px"
                @click="hf()">jz
    </el-button>
  </el-main>
</template>

<script>
import {huanfang} from "@/api/module/yzx/details";
export default {
  name: "huanfang",
  data() {
    return {
      //记录单价
      price: null,
      //记录服务员号
      recordEmployeeNumber: null,
      //记录手牌号
      handBrand: null,
      //记录房间
      seat: null,
      entryName: null,
      note6: null,
      info: {},
      // 遮罩层
      loading1: false,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 消费详细表格数据
      detailsList: [],
      // 项目信息表格数据
      projectList: [],
      projectList1: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        entryName: null,
        projectCategory: null,
        firstLevelClassification: null,
        secondaryClassification: null,
        tertiaryClassification: null,
        projectCode: null,
        mnemonicCode: null,
        unit: null,
        unitPrice: null,
        commissionPrice: null,
        clockUpTime: null,
        note1: null,
        note2: null,
        note3: null,
        note4: null,
        note5: null,
        note6: null,
        note7: null,
        note8: null,
        note9: null,
        note10: null
      },
      queryParams1: {
        pageNum: 1,
        pageSize: 10,
        entryName: null,
        projectCategory: null,
        firstLevelClassification: null,
        secondaryClassification: null,
        tertiaryClassification: null,
        projectCode: null,
        mnemonicCode: null,
        unit: null,
        unitPrice: null,
        commissionPrice: null,
        clockUpTime: null,
        note1: null,
        note2: null,
        note3: null,
        note4: null,
        note5: null,
        note6: null,
        note7: null,
        note8: null,
        note9: null,
        note10: null
      },
      queryParams2: {
        pageNum: 1,
        pageSize: 10,
        userId: null,
        deptId: null,
        department: null,
        nickName: null,
        userName: null,
        post: null,
        handBrand: null,
        handCategory: null,
        handState: null,
        retentionStatus: null,
        mergeStatus: null,
        openingTime: null,
        drawTime: null,
        mergeHands: null,
        mergeBarBillsId: null,
        leaveTime: null,
        beforeLeave: null,
        beforeBarBillsId: null,
        entryName: null,
        projectCategory: null,
        projectCode: null,
        mnemonicCode: null,
        unit: null,
        unitPrice: null,
        commissionPrice: null,
        together: null,
        sailingsSigns: null,
        barBillsId: null,
        recordingTime: null,
        quantity: null,
        totalAmount: null,
        seat: null,
        orderNumber: null,
        paymentMethod: null,
        consumptionStatus: null,
        chargebackTime: null,
        reasonForChargeback: null,
        chargebackProcessorAccount: null,
        chargebackProcessorName: null,
        clockTime: null,
        nextClockTime: null,
        nextClockStatus: null,
        recordEmployeeNumber: null,
        recorderEmployeeName: null,
        roomType: null,
        openingHours: null,
        checkOutTime: null,
        checkOutStatus: null,
        note1: null,
        note2: null,
        note3: null,
        note4: null,
        note5: null,
        note6: null,
        note7: null,
        note8: null,
        note9: null,
        note10: null
      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {}
    };

  },
  methods: {
    back() {
      this.$router.push({path: "/jishi/index"});
    },
    xz(row) {
      this.form.projectCode = row.projectCode;
      this.form.unitPrice = row.unitPrice;
      this.form.entryName = row.entryName;
      this.queryParams.projectCode = row.projectCode;
      listProject(this.queryParams).then(response => {
        this.projectList1 = response.rows;
        this.total = response.total;
        this.projectList1.forEach(item => {
        })
      });
    },
    /** 查询消费详细列表 */
    hf() {

      huanfang(this.form).then(response => {
        this.$modal.msgSuccess("换钟成功");
      });
      this.$router.push({path: "/jishi/index"});
      /* }).catch(() => {
       });*/
    },
  }
}
</script>

